package com.fizzkai.p2p.bussness.mapper;

import com.fizzkai.p2p.bussness.domain.Bid;
import com.fizzkai.p2p.core.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BidMapper {
    int insert(Bid record);

    Bid selectByPrimaryKey(Long id);

    List<Bid> queryList(QueryObject qo);

    int updateByPrimaryKey(Bid record);

    void updateState(@Param("bidRequestId") Long bidRequestId, @Param("state") int state);
}